﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Text;
using iMES.Entity.SystemModels;

namespace iMES.Entity.DomainModels
{
    [Entity(TableCnName = "入库单明细", TableName = "Invent_StoreDetails")]
    public partial class Invent_StoreDetails: SysEntity
    {
        /// <summary>
        ///入库单产品明细表主键ID
        /// </summary>
        [Key]
        [Display(Name = "入库单产品明细表主键ID")]
        [Column(TypeName = "int")]
        [Required(AllowEmptyStrings = false)]
        public int WareHouseBillList_Id { get; set; }

        /// <summary>
        ///入库单
        /// </summary>
        [Display(Name = "入库单")]
        [Column(TypeName = "int")]
        [Required(AllowEmptyStrings = false)]
        public int WareHouseBill_Id { get; set; }

        /// <summary>
        ///产品名称
        /// </summary>
        [Display(Name = "产品名称")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string ProductName { get; set; }

        /// <summary>
        ///产品编号
        /// </summary>
        [Display(Name = "产品编号")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string ProductCode { get; set; }

        /// <summary>
        ///库存单位
        /// </summary>
        [Display(Name = "库存单位")]
        [Column(TypeName = "int")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public int Unit_Id { get; set; }

        /// <summary>
        ///产品规格
        /// </summary>
        [Display(Name = "产品规格")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        [Editable(true)]
        public string ProductStandard { get; set; }

        /// <summary>
        ///最大库存
        /// </summary>
        [Display(Name = "最大库存")]
        [Column(TypeName = "int")]
        [Editable(true)]
        public int? MaxInventory { get; set; }

        /// <summary>
        ///最小库存
        /// </summary>
        [Display(Name = "最小库存")]
        [Column(TypeName = "int")]
        [Editable(true)]
        public int? MinInventory { get; set; }

        /// <summary>
        ///安全库存
        /// </summary>
        [Display(Name = "安全库存")]
        [Column(TypeName = "int")]
        [Editable(true)]
        public int? SafeInventory { get; set; }

        /// <summary>
        ///入库数量
        /// </summary>
        [Display(Name = "入库数量")]
        [Column(TypeName = "int")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public int InStoreQty { get; set; }

        /// <summary>
        ///当前库存数量
        /// </summary>
        [Display(Name = "当前库存数量")]
        [Column(TypeName = "int")]
        [Editable(true)]
        public int? InventoryQty { get; set; }

        /// <summary>
        ///创建人
        /// </summary>
        [Display(Name = "创建人")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        public string Creator { get; set; }

        /// <summary>
        ///创建人编号
        /// </summary>
        [Display(Name = "创建人编号")]
        [Column(TypeName = "int")]
        public int? CreateID { get; set; }

        /// <summary>
        ///创建时间
        /// </summary>
        [Display(Name = "创建时间")]
        [Column(TypeName = "datetime")]
        public DateTime? CreateDate { get; set; }

        /// <summary>
        ///修改人
        /// </summary>
        [Display(Name = "修改人")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        public string Modifier { get; set; }

        /// <summary>
        ///修改人编号
        /// </summary>
        [Display(Name = "修改人编号")]
        [Column(TypeName = "int")]
        public int? ModifyID { get; set; }

        /// <summary>
        ///修改时间
        /// </summary>
        [Display(Name = "修改时间")]
        [Column(TypeName = "datetime")]
        public DateTime? ModifyDate { get; set; }

        /// <summary>
        ///产品ID
        /// </summary>
        [Display(Name = "产品ID")]
        [Column(TypeName = "int")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public int Product_Id { get; set; }
    }
}
